package opengl.texture;

import java.io.IOException;

import util.ResourceLoader;


public class Textures {
	public final static Texture cobbleStone =createTexture("cobblestone");
	public final static Texture dirt =createTexture("dirt");
	public final static Texture clay =createTexture("clay");
	public final static Texture brick =createTexture("brick");

	private final static Texture createTexture(String textureName) {
		Texture t;
		try {
			t = TextureLoader.getTexture("PNG", ResourceLoader.getResourceAsStream("assets/images/"+textureName+".png"));
			values[t.getTextureID()] = t;
			return t;
		} catch (IOException e) {
			e.printStackTrace();
		}//
		return null;

	}

	private final static Texture[] values = new Texture[4096];

}
